<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>柱状图</title>
    <!-- 引入 echarts.js -->
    <script src = "https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
    <div id = "main" style="width:600px;height:400px;"></div>
    <script type="text/javascript">

        var myEcharts = echarts.init(document.getElementById('main'));

        var option = {
            titel : {
                text:"柱状图"
            },
            tooltip:{},
            legend:{
                data:["人数"]
            },
            xaxis:{
                data:["流失用户" , "回流用户" , "连续活跃用户" ,"新用户","活跃用户"]
            },
            yaxis : {},
            series:[{
                name: "人数",
                type : "bar",
                data:[183472,6546,524,91,0,]
            }]
        };
        myEcharts.setOption(option);
    </script>
</body>
</html>